package com.supermarket.manage.common.dto.ucenter.request;

import com.supermarket.manage.common.validation.ListIsNotBlank;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author Faxon
 * @version 1.0
 * @date 2020-03-01 17:21
 **/
@Data
@ApiModel("RoleAddPermission:角色添加权限 数据对象")
public class RoleAddPermissionParams implements Serializable {

    private static final long serialVersionUID = -4042331692691909340L;

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id")
    @NotNull(message = "角色id不能为空")
    private Long roleId;

    /**
     * 权限id数组
     */
    @ApiModelProperty(value = "权限id数组")
    @ListIsNotBlank(message = "权限id数组不能为空")
    private List<Long> permissionIds;
}
